﻿<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head lang="en" th:replace="admin/adminPublic :: #adminPublic_head">
</head>
<body>
<!--头部-->
<header class="publicHeader" th:replace="admin/adminPublic :: #adminPublic_header">
</header>
<!--时间-->
<section class="publicTime" th:replace="admin/adminPublic :: #adminPublic_time">
</section>
<!--主体内容-->
<section class="publicMian ">
    <!-- 左边栏 -->
    <div class="left" th:replace="admin/adminPublic :: #adminPublic_left"></div>
    <!-- 右边栏 -->
    <div class="right">
        <div class="location">
            <strong>你现在所在的位置是 >> </strong>
            <span>管理医生页面</span>
        </div>
        <form id="searchForm" th:action="@{/adminFindDoctorByNameLike}" th:method="get" >
            <div class="search" >
                <span>医生姓名：</span>
                <input type="text" name="d_name"  placeholder="请输入医生的姓名:"/>
                <input type="button" value="查询" onclick="$('#searchForm').submit()"/>
                <a th:href="@{/toAdminAddDoctorPage}" href="../bill/add.html">录入医生信息</a>
            </div>
        </form>
        <!--公用-->
        <table class="providerTable" cellpadding="0" cellspacing="0">
            <tr class="firstTr">
                <th width="5%" >编号:</th>
                <th width="10%">姓名:</th>
                <th width="5%">性别:</th>
                <th width="5%">年龄:</th>
                <th width="5%">科室:</th>
                <th width="30%">住址:</th>
                <th width="10%">电话:</th>
                <th width="10%">密码:</th>
                <th width="10%" >操作:</th>
            </tr>
            <tr th:each="byIdDoctorMap : ${byIdDoctorMap}">
                <td th:text="${byIdDoctorMap.d_id}"></td>
                <td th:text="${byIdDoctorMap.d_name}"></td>
                <td th:text="${byIdDoctorMap.d_sex== 1 ? '男' : '女'}"></td>
                <td th:text="${byIdDoctorMap.d_age}"></td>
                <td th:text="${byIdDoctorMap.d_department}"></td>
                <td th:text="${byIdDoctorMap.d_address}"></td>
                <td th:text="${byIdDoctorMap.d_tel}"></td>
                <td th:text="${byIdDoctorMap.d_password}"></td>
                <td>
                    <a th:href="@{/adminDoctorUpdates/} + ${byIdDoctorMap.d_id} " ><img th:src="@{/img/xiugai.png}"  src="../img/xiugai.png" alt="修改" title="修改"/></a>
                    <a th:attr="del_uri=@{/adminDeleteDoctorData/}+${byIdDoctorMap.d_id}"  href="#" class="delete" ><img th:src="@{/img/schu.png}"  src="../img/schu.png" alt="删除" title="删除"/></a>
                </td>
            </tr>
        </table>
    </div>
</section>

<!--点击删除按钮后弹出的页面-->
<div class="zhezhao"></div>
<form method="post" id="deleteForm">
    <input type="hidden" name="_method" value="delete">
    <div class="remove" id="removeProv">
        <div class="removerChid">
            <h2>提示</h2>
            <div class="removeMain">
                <p>你确定要删除吗？</p>
                <a href="#" id="yes">确定</a>
                <a href="#" id="no">取消</a>
            </div>
        </div>
    </div>
</form>

<!-- 底部信息栏 -->
<footer class="footer" th:replace="admin/adminPublic :: #adminPublic_footer">
</footer>

</body>
</html>